package com.drawables;

import java.util.Random;

import javax.microedition.khronos.opengles.GL10;

import com.aybived.AybivedConfig;
import com.interfaces.Collidable;

public class Obstacle extends Collidable {
	
	public int x,relx,rely;
	private Random rand;

	public Obstacle(int x, int y) {
		this.rand = new Random();
		this.relx = x;
		this.rely = y;
		this.x=0;
	}
	
	public void setPosition(int x) {
		this.x = x;
	}
	
	public void moveBy(int x) {
		this.x -= x;
	}
		
	public void randomMask() {
		//TODO get a random bitmap from scene::bimaplist
	}
	
	private int randMaskIndex() {
		return (int)(rand.nextFloat()*AybivedConfig.OBSTACLE_COUNT);
	}

	@Override
	public void update(double dt) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void draw(GL10 gl) {
		// TODO Auto-generated method stub
		
	}
	
}
